import Vue from "vue";
import Vuex from "vuex";

Vue.use(Vuex);

export default new Vuex.Store({
  state: {
    msg:"这是state中数据！",
    counter:10
  },
  mutations: {},//修改state中数据方法
  actions: {},
  modules: {},
  getters:{
    getters(state){
      return state.counter*state.counter
    }
  },
});
